package cn.ywang;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author: BeatificWang
 * @date: 2018/12/17 22:24
 */
public class ClientApp {
	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-client.xml");
		IHello hello = (IHello) context.getBean("helloImpl");
		IService service = (IService) context.getBean("serviceImpl");
		System.out.println(hello.sayHello("wang"));
		System.out.println(service.sayProtocol("wang"));
		System.in.read();
	}
}
